#ifndef  SE_MESH_H
#define SE_MESH_H
#include "se_common.h"
using namespace std;
BEGIN_K3D


SStaticMesh* loadOGREMesh(const char* );
USHORT readChunk(ifstream& io);
bool readBool(ifstream& io);
int readInt(ifstream& io);
string readString(ifstream& io,int size=-1);
short readShort(ifstream& io);
template<class T>
void readArray(vector<T>& vec,ifstream& io,int count)
{
	if(count<=0)return;
	vec.clear();
	vec.resize(count);	
	io.read((char*)(&(vec[0])),sizeof(T)*count);
}
END_K3D
#endif
 
